//
/**
*
*File name:		LXAlertProtocol.swift
*History:		yoctech create on 2021/7/29       
*Description:
	
*/


import Foundation

public protocol LXAlertProtocol: NSObjectProtocol {
    var alertLevel: Int {get}
    
    var alertAnimationDuration: TimeInterval {get}

    var alertIdentifier: String? {get}

    /// 显示
    func alertShow()
    /// 隐藏
    func alertHide()
    
    /// 队列显示
    func queueShow()
    /// 队列隐藏
    func queueHide()
}

public extension LXAlertProtocol {
    func queueShow() {
        LXAlertManager.shared.push(self)
    }
    func queueHide() {
        LXAlertManager.shared.pop(self)
    }
}

